package com.decent.ejfadmin.user.bean;

import com.decent.ejfadmin.utils.OSSClientUtil;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * describe:
 *
 * @author JunLei He
 * @date 2018年11月17日
 */
@Data
public class OssPicUrlBean {
    /**
     * 反面路径
     */
    private String reversePicUrl;
    /**
     * 手持图片途径
     */
    private String handingPicUrl;
    /**
     * 正面图片路径
     */
    private String frontPicUrl;
    /**
     * 签名
     */
    private String eSignature;

    /**
     * 获取路径列表
     *
     * @return 返回列表
     */
    public List<String> getPicUrlList() {
        OSSClientUtil ossClient = new OSSClientUtil();
        List<String> picUrlList = new ArrayList<>();
        picUrlList.add(ossClient.getPicUrl(frontPicUrl));
        picUrlList.add(ossClient.getPicUrl(reversePicUrl));
        picUrlList.add(ossClient.getPicUrl(handingPicUrl));
        picUrlList.add(ossClient.getPicUrl(eSignature));
        return picUrlList;
    }
}
